import { COUNTER_DECREMENT, COUNTER_INCREMENT, USER_MODIFY } from './constants'
export const decrement = (payload) => ({
  type: COUNTER_DECREMENT,
  payload,
})

export const increment = (payload) => ({
  type: COUNTER_INCREMENT,
  payload,
})

// !#4 创建了一个 actionCreator
export const modifyUser = (payload) => ({
  type: USER_MODIFY,
  payload,
})
